<template>
  <div class="crumb">
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item v-for="item in titles" :key="item">{{item}}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>

export default {
  name: 'BreadCrumb',
  data(){
    return{
      titles:[]
    }
  },
  watch:{
    $route:{
      immediate:true,
      handler(){
        this.titles=this.$route.meta.titles
      }
    }
  },
}
</script>
<style scoped>
  .crumb .el-breadcrumb{
    line-height: 50px;
  }
</style>
